/*
 * @Author: ykr
 * @Date: 2023-08-14 16:15:51
 * @LastEditors: 雷佳斌 leijiabin@yunjinhz.com
 * @LastEditTime: 2024-05-18 14:36:52
 * @FilePath: \zmglpt-ui-mobile-v1.1\dev\pages.js
 */
/**
 * @description  : 动态路由集成
 * @descriptionDetail : 动态路由集成
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2022-09-04 11:17:32
 */
module.exports = (pagesJson,loader) => {
  // 需要将loader传入作为初始化，v0.0.6之后只需要初始化一次
  const hotRequire = require('uni-pages-hot-modules')(loader);
  let basePages = [];
  let baseSubPackages = [];
 
  return {
    // 合并pages.json的内容
    ...pagesJson,
    pages:[
      ...basePages,
      ...hotRequire('./page_modules/base.js'), // 基础
      ...hotRequire('./page_modules/case.js'), // 案件
      ...hotRequire('./page_modules/certificate.js'), // 证件
      ...hotRequire('./page_modules/check.js'), // 市管
      ...hotRequire('./page_modules/intelligence.js'), // 情报 大案
      ...hotRequire('./page_modules/internal.js'), // 内管
      ...hotRequire('./page_modules/query.js'), // 在线查询
      ...hotRequire('./page_modules/retailer.js'), // 零售户
      ...hotRequire('./page_modules/store.js'), // 仓库
      ...hotRequire('./page_modules/score.js'), // 评分
      ...hotRequire('./page_modules/supervision.js'), // 专卖监管
	    ...hotRequire('./page_modules/threeMembersTeamWork'), // 三员协同
      ...hotRequire('./page_modules/tripleNetworkIntegration'), // 三网融合
      ...hotRequire('./page_modules/threePostsJointAction'), // 三岗联动
    ],
    subPackages:[
      ...baseSubPackages,
    ],
  };
};